const pre = 'agent_';
import LayoutMain from '@/views/agent/layout';

export default [
    {
        path: '/agent',
        name: 'agent',
        meta: {
            auth: true,
            title: '登录',
            is_region: true,
        },
        component: () => import('@/views/agent/login/index'),
    },
    {
        path: '/agent',
        name: 'agent',
        header: 'agent',
        component: LayoutMain,
        children: [
            {
                path: 'edit_pwd',
                name: `systemAgent`,
                meta: {
                    auth: true,
                    title: '个人中心',
                    is_region: true,
                },
                component: () => import('@/views/agent/login/edit_pwd'),
            },
            {
                path: 'home',
                name: `${pre}home`,
                meta: {
                    auth: true,
                    title: '首页',
                    region: true,
                    path: '/region/home',
                    is_region: true,

                },
                component: () => import('@/views/agent/index/index')
            },
            {
                path:'order/list',
                name:`${pre}order_list`,
                meta:{
                    auth:true,
                    title:'订单列表',
                    is_region: true,
                    path: '/agent/order/list'
                },
                component: () => import('@/views/agent/order/index')
            },
            {
                path:"agent_extract",
                name:`${pre}agent_extract`,
                meta: {
                    auth: true,
                    title:'代理提现',
                    path: '/agent/agent_extract'

                },
                component: () => import("@/views/agent/extract/index")
            },

            
        ]
    }

]